<?php
echo $form->create('Memo',
        array(
            'action' => 'add',
            'id' => 'memo',
            'default' => false));
echo $form->input('text', array('id' => 'text'));
echo $form->submit("Dodaj", array('id' => 'submit'));
echo $form->end();

?>
<script>
    $('submit').addEvent('click', function() {
        new Form.Request($('memo'), $('page-content')).send();
    });
</script>
